<!DOCTYPE html>
<html>

<head>
  <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0">
  <title>ASCII码详解</title>
  <style>
    table.bx {
      border-bottom: 1px solid #adf;
      text-align: center;
      border-collapse: collapse;
    }

    table.bx thead th,
    table.bx tbody th {
      border: 1px solid #adf;
      background-color: #e7f1ff;
      line-height: 24px;
      font-size: 12px;
      padding: 0 5px;
      font-weight: normal;
    }

    table.bx td {
      font-size: 12px;
      border: 1px solid #adf;
      line-height: 24px;
      font-family: Arial;
      padding: 0 4px;
      word-break: break-all;
    }

    .container {
      width: 1120px;
      margin: auto;
    }

    .bxs3 {
      width: 32%;
      margin-right: 2%;
      float: left;
    }

    .bxs3:last-child {
      margin-right: 0;
    }

    @media screen and (max-width: 640px) {
      .container {
        width: auto;
      }

      .bxs3 {
        margin: 20px 0;
        width: 100%;
      }
    }
  </style>
</head>

<body>
  <div class="container">
    <p>ASCII（American Standard Code for Information
      Interchange，美国信息互换标准代码，ASCⅡ）是基于拉丁字母的一套电脑编码系统。它主要用于显示现代英语和其他西欧语言。它是现今最通用的单字节编码系统，并等同于国际标准ISO/IEC 646。</p>
    <p>
      ASCII第一次以规范标准的型态发表是在1967年，最后一次更新则是在1986年，至今为止共定义了128个字符，其中33个字符无法显示（这是以现今操作系统为依归，但在DOS模式下可显示出一些诸如笑脸、扑克牌花式等8-bit符号），且这33个字符多数都已是陈废的控制字符，控制字符的用途主要是用来操控已经处理过的文字，在33个字符之外的是95个可显示的字符，包含用键盘敲下空白键所产生的空白字符也算1个可显示字符（显示为空白）。
    </p>
    <h3 class="">ASCII控制字符</h3>
    <table width="100%" border="0" cellpadding="0" cellspacing="0" class="bx">
      <thead>
        <tr valign="bottom">
          <th>二进制</th>
          <th>十进制</th>
          <th>十六进制</th>
          <th>缩写</th>
          <th>可以显示的表示法</th>
          <th>名称/意义</th>
        </tr>
      </thead>
      <tbody>
        <tr>
          <td>0000 0000</td>
          <td>0</td>
          <td>00</td>
          <td>NUL</td>
          <td>␀</td>
          <td>空字符（Null）</td>
        </tr>
        <tr>
          <td>0000 0001</td>
          <td>1</td>
          <td>01</td>
          <td>SOH</td>
          <td>␁</td>
          <td>标题开始</td>
        </tr>
        <tr>
          <td>0000 0010</td>
          <td>2</td>
          <td>02</td>
          <td>STX</td>
          <td>␂</td>
          <td>本文开始</td>
        </tr>
        <tr>
          <td>0000 0011</td>
          <td>3</td>
          <td>03</td>
          <td>ETX</td>
          <td>␃</td>
          <td>本文结束</td>
        </tr>
        <tr>
          <td>0000 0100</td>
          <td>4</td>
          <td>04</td>
          <td>EOT</td>
          <td>␄</td>
          <td>传输结束</td>
        </tr>
        <tr>
          <td>0000 0101</td>
          <td>5</td>
          <td>05</td>
          <td>ENQ</td>
          <td>␅</td>
          <td>请求</td>
        </tr>
        <tr>
          <td>0000 0110</td>
          <td>6</td>
          <td>06</td>
          <td>ACK</td>
          <td>␆</td>
          <td>确认回应</td>
        </tr>
        <tr>
          <td>0000 0111</td>
          <td>7</td>
          <td>07</td>
          <td>BEL</td>
          <td>␇</td>
          <td>响铃</td>
        </tr>
        <tr>
          <td>0000 1000</td>
          <td>8</td>
          <td>08</td>
          <td>BS</td>
          <td>␈</td>
          <td>退格</td>
        </tr>
        <tr>
          <td>0000 1001</td>
          <td>9</td>
          <td>09</td>
          <td>HT</td>
          <td>␉</td>
          <td>水平定位符号</td>
        </tr>
        <tr>
          <td>0000 1010</td>
          <td>10</td>
          <td>0A</td>
          <td>LF</td>
          <td>␊</td>
          <td>换行键</td>
        </tr>
        <tr>
          <td>0000 1011</td>
          <td>11</td>
          <td>0B</td>
          <td>VT</td>
          <td>␋</td>
          <td>垂直定位符号</td>
        </tr>
        <tr>
          <td>0000 1100</td>
          <td>12</td>
          <td>0C</td>
          <td>FF</td>
          <td>␌</td>
          <td>换页键</td>
        </tr>
        <tr>
          <td>0000 1101</td>
          <td>13</td>
          <td>0D</td>
          <td>CR</td>
          <td>␍</td>
          <td>归位键</td>
        </tr>
        <tr>
          <td>0000 1110</td>
          <td>14</td>
          <td>0E</td>
          <td>SO</td>
          <td>␎</td>
          <td>取消变换（Shift out）</td>
        </tr>
        <tr>
          <td>0000 1111</td>
          <td>15</td>
          <td>0F</td>
          <td>SI</td>
          <td>␏</td>
          <td>启用变换（Shift in）</td>
        </tr>
        <tr>
          <td>0001 0000</td>
          <td>16</td>
          <td>10</td>
          <td>DLE</td>
          <td>␐</td>
          <td>跳出数据通讯</td>
        </tr>
        <tr>
          <td>0001 0001</td>
          <td>17</td>
          <td>11</td>
          <td>DC1</td>
          <td>␑</td>
          <td>设备控制一（XON 启用软件速度控制）</td>
        </tr>
        <tr>
          <td>0001 0010</td>
          <td>18</td>
          <td>12</td>
          <td>DC2</td>
          <td>␒</td>
          <td>设备控制二</td>
        </tr>
        <tr>
          <td>0001 0011</td>
          <td>19</td>
          <td>13</td>
          <td>DC3</td>
          <td>␓</td>
          <td>设备控制三（XOFF 停用软件速度控制）</td>
        </tr>
        <tr>
          <td>0001 0100</td>
          <td>20</td>
          <td>14</td>
          <td>DC4</td>
          <td>␔</td>
          <td>设备控制四</td>
        </tr>
        <tr>
          <td>0001 0101</td>
          <td>21</td>
          <td>15</td>
          <td>NAK</td>
          <td>␕</td>
          <td>确认失败回应</td>
        </tr>
        <tr>
          <td>0001 0110</td>
          <td>22</td>
          <td>16</td>
          <td>SYN</td>
          <td>␖</td>
          <td>同步用暂停</td>
        </tr>
        <tr>
          <td>0001 0111</td>
          <td>23</td>
          <td>17</td>
          <td>ETB</td>
          <td>␗</td>
          <td>区块传输结束</td>
        </tr>
        <tr>
          <td>0001 1000</td>
          <td>24</td>
          <td>18</td>
          <td>CAN</td>
          <td>␘</td>
          <td>取消</td>
        </tr>
        <tr>
          <td>0001 1001</td>
          <td>25</td>
          <td>19</td>
          <td>EM</td>
          <td>␙</td>
          <td>连接介质中断</td>
        </tr>
        <tr>
          <td>0001 1010</td>
          <td>26</td>
          <td>1A</td>
          <td>SUB</td>
          <td>␚</td>
          <td>替换</td>
        </tr>
        <tr>
          <td>0001 1011</td>
          <td>27</td>
          <td>1B</td>
          <td>ESC</td>
          <td>␛</td>
          <td>跳出</td>
        </tr>
        <tr>
          <td>0001 1100</td>
          <td>28</td>
          <td>1C</td>
          <td>FS</td>
          <td>␜</td>
          <td>文件分割符</td>
        </tr>
        <tr>
          <td>0001 1101</td>
          <td>29</td>
          <td>1D</td>
          <td>GS</td>
          <td>␝</td>
          <td>组群分隔符</td>
        </tr>
        <tr>
          <td>0001 1110</td>
          <td>30</td>
          <td>1E</td>
          <td>RS</td>
          <td>␞</td>
          <td>记录分隔符</td>
        </tr>
        <tr>
          <td>0001 1111</td>
          <td>31</td>
          <td>1F</td>
          <td>US</td>
          <td>␟</td>
          <td>单元分隔符</td>
        </tr>
        <tr>
          <td>0111 1111</td>
          <td>127</td>
          <td>7F</td>
          <td>DEL</td>
          <td>␡</td>
          <td>删除</td>
        </tr>
      </tbody>
    </table>
    <h3 class="">ASCII可显示字符</h3>
    <table width="100%" border="0" cellpadding="0" cellspacing="0" class="bx bxs3">
      <thead>
        <tr valign="bottom">
          <th>二进制</th>
          <th>十进制</th>
          <th>十六进制</th>
          <th>图形</th>
        </tr>
      </thead>
      <tbody>
        <tr>
          <td>0010 0000</td>
          <td>32</td>
          <td>20</td>
          <td>（空格）(␠)</td>
        </tr>
        <tr>
          <td>0010 0001</td>
          <td>33</td>
          <td>21</td>
          <td>!</td>
        </tr>
        <tr>
          <td>0010 0010</td>
          <td>34</td>
          <td>22</td>
          <td>"</td>
        </tr>
        <tr>
          <td>0010 0011</td>
          <td>35</td>
          <td>23</td>
          <td>#</td>
        </tr>
        <tr>
          <td>0010 0100</td>
          <td>36</td>
          <td>24</td>
          <td>$</td>
        </tr>
        <tr>
          <td>0010 0101</td>
          <td>37</td>
          <td>25</td>
          <td> %</td>
        </tr>
        <tr>
          <td>0010 0110</td>
          <td>38</td>
          <td>26</td>
          <td>&amp;</td>
        </tr>
        <tr>
          <td>0010 0111</td>
          <td>39</td>
          <td>27</td>
          <td>'</td>
        </tr>
        <tr>
          <td>0010 1000</td>
          <td>40</td>
          <td>28</td>
          <td>(</td>
        </tr>
        <tr>
          <td>0010 1001</td>
          <td>41</td>
          <td>29</td>
          <td>)</td>
        </tr>
        <tr>
          <td>0010 1010</td>
          <td>42</td>
          <td>2A</td>
          <td>*</td>
        </tr>
        <tr>
          <td>0010 1011</td>
          <td>43</td>
          <td>2B</td>
          <td>+</td>
        </tr>
        <tr>
          <td>0010 1100</td>
          <td>44</td>
          <td>2C</td>
          <td>,</td>
        </tr>
        <tr>
          <td>0010 1101</td>
          <td>45</td>
          <td>2D</td>
          <td>-</td>
        </tr>
        <tr>
          <td>0010 1110</td>
          <td>46</td>
          <td>2E</td>
          <td>.</td>
        </tr>
        <tr>
          <td>0010 1111</td>
          <td>47</td>
          <td>2F</td>
          <td>/</td>
        </tr>
        <tr>
          <td>0011 0000</td>
          <td>48</td>
          <td>30</td>
          <td>0</td>
        </tr>
        <tr>
          <td>0011 0001</td>
          <td>49</td>
          <td>31</td>
          <td>1</td>
        </tr>
        <tr>
          <td>0011 0010</td>
          <td>50</td>
          <td>32</td>
          <td>2</td>
        </tr>
        <tr>
          <td>0011 0011</td>
          <td>51</td>
          <td>33</td>
          <td>3</td>
        </tr>
        <tr>
          <td>0011 0100</td>
          <td>52</td>
          <td>34</td>
          <td>4</td>
        </tr>
        <tr>
          <td>0011 0101</td>
          <td>53</td>
          <td>35</td>
          <td>5</td>
        </tr>
        <tr>
          <td>0011 0110</td>
          <td>54</td>
          <td>36</td>
          <td>6</td>
        </tr>
        <tr>
          <td>0011 0111</td>
          <td>55</td>
          <td>37</td>
          <td>7</td>
        </tr>
        <tr>
          <td>0011 1000</td>
          <td>56</td>
          <td>38</td>
          <td>8</td>
        </tr>
        <tr>
          <td>0011 1001</td>
          <td>57</td>
          <td>39</td>
          <td>9</td>
        </tr>
        <tr>
          <td>0011 1010</td>
          <td>58</td>
          <td>3A</td>
          <td>:</td>
        </tr>
        <tr>
          <td>0011 1011</td>
          <td>59</td>
          <td>3B</td>
          <td>;</td>
        </tr>
        <tr>
          <td>0011 1100</td>
          <td>60</td>
          <td>3C</td>
          <td>&lt;</td>
        </tr>
        <tr>
          <td>0011 1101</td>
          <td>61</td>
          <td>3D</td>
          <td>=</td>
        </tr>
        <tr>
          <td>0011 1110</td>
          <td>62</td>
          <td>3E</td>
          <td>&gt;</td>
        </tr>
        <tr>
          <td>0011 1111</td>
          <td>63</td>
          <td>3F</td>
          <td>?</td>
        </tr>
      </tbody>
    </table>
    <table width="100%" border="0" cellpadding="0" cellspacing="0" class="bx bxs3">
      <thead>
        <tr valign="bottom">
          <th>二进制</th>
          <th>十进制</th>
          <th>十六进制</th>
          <th>图形</th>
        </tr>
      </thead>
      <tbody>
        <tr>
          <td>0100 0000</td>
          <td>64</td>
          <td>40</td>
          <td>@</td>
        </tr>
        <tr>
          <td>0100 0001</td>
          <td>65</td>
          <td>41</td>
          <td>A</td>
        </tr>
        <tr>
          <td>0100 0010</td>
          <td>66</td>
          <td>42</td>
          <td>B</td>
        </tr>
        <tr>
          <td>0100 0011</td>
          <td>67</td>
          <td>43</td>
          <td>C</td>
        </tr>
        <tr>
          <td>0100 0100</td>
          <td>68</td>
          <td>44</td>
          <td>D</td>
        </tr>
        <tr>
          <td>0100 0101</td>
          <td>69</td>
          <td>45</td>
          <td>E</td>
        </tr>
        <tr>
          <td>0100 0110</td>
          <td>70</td>
          <td>46</td>
          <td>F</td>
        </tr>
        <tr>
          <td>0100 0111</td>
          <td>71</td>
          <td>47</td>
          <td>G</td>
        </tr>
        <tr>
          <td>0100 1000</td>
          <td>72</td>
          <td>48</td>
          <td>H</td>
        </tr>
        <tr>
          <td>0100 1001</td>
          <td>73</td>
          <td>49</td>
          <td>I</td>
        </tr>
        <tr>
          <td>0100 1010</td>
          <td>74</td>
          <td>4A</td>
          <td>J</td>
        </tr>
        <tr>
          <td>0100 1011</td>
          <td>75</td>
          <td>4B</td>
          <td>K</td>
        </tr>
        <tr>
          <td>0100 1100</td>
          <td>76</td>
          <td>4C</td>
          <td>L</td>
        </tr>
        <tr>
          <td>0100 1101</td>
          <td>77</td>
          <td>4D</td>
          <td>M</td>
        </tr>
        <tr>
          <td>0100 1110</td>
          <td>78</td>
          <td>4E</td>
          <td>N</td>
        </tr>
        <tr>
          <td>0100 1111</td>
          <td>79</td>
          <td>4F</td>
          <td>O</td>
        </tr>
        <tr>
          <td>0101 0000</td>
          <td>80</td>
          <td>50</td>
          <td>P</td>
        </tr>
        <tr>
          <td>0101 0001</td>
          <td>81</td>
          <td>51</td>
          <td>Q</td>
        </tr>
        <tr>
          <td>0101 0010</td>
          <td>82</td>
          <td>52</td>
          <td>R</td>
        </tr>
        <tr>
          <td>0101 0011</td>
          <td>83</td>
          <td>53</td>
          <td>S</td>
        </tr>
        <tr>
          <td>0101 0100</td>
          <td>84</td>
          <td>54</td>
          <td>T</td>
        </tr>
        <tr>
          <td>0101 0101</td>
          <td>85</td>
          <td>55</td>
          <td>U</td>
        </tr>
        <tr>
          <td>0101 0110</td>
          <td>86</td>
          <td>56</td>
          <td>V</td>
        </tr>
        <tr>
          <td>0101 0111</td>
          <td>87</td>
          <td>57</td>
          <td>W</td>
        </tr>
        <tr>
          <td>0101 1000</td>
          <td>88</td>
          <td>58</td>
          <td>X</td>
        </tr>
        <tr>
          <td>0101 1001</td>
          <td>89</td>
          <td>59</td>
          <td>Y</td>
        </tr>
        <tr>
          <td>0101 1010</td>
          <td>90</td>
          <td>5A</td>
          <td>Z</td>
        </tr>
        <tr>
          <td>0101 1011</td>
          <td>91</td>
          <td>5B</td>
          <td>[</td>
        </tr>
        <tr>
          <td>0101 1100</td>
          <td>92</td>
          <td>5C</td>
          <td>\</td>
        </tr>
        <tr>
          <td>0101 1101</td>
          <td>93</td>
          <td>5D</td>
          <td>]</td>
        </tr>
        <tr>
          <td>0101 1110</td>
          <td>94</td>
          <td>5E</td>
          <td>^</td>
        </tr>
        <tr>
          <td>0101 1111</td>
          <td>95</td>
          <td>5F</td>
          <td>_</td>
        </tr>
      </tbody>
    </table>
    <table width="100%" border="0" cellpadding="0" cellspacing="0" class="bx bxs3">
      <thead>
        <tr valign="bottom">
          <th>二进制</th>
          <th>十进制</th>
          <th>十六进制</th>
          <th>图形</th>
        </tr>
      </thead>
      <tbody>
        <tr>
          <td>0110 0000</td>
          <td>96</td>
          <td>60</td>
          <td>`</td>
        </tr>
        <tr>
          <td>0110 0001</td>
          <td>97</td>
          <td>61</td>
          <td>a</td>
        </tr>
        <tr>
          <td>0110 0010</td>
          <td>98</td>
          <td>62</td>
          <td>b</td>
        </tr>
        <tr>
          <td>0110 0011</td>
          <td>99</td>
          <td>63</td>
          <td>c</td>
        </tr>
        <tr>
          <td>0110 0100</td>
          <td>100</td>
          <td>64</td>
          <td>d</td>
        </tr>
        <tr>
          <td>0110 0101</td>
          <td>101</td>
          <td>65</td>
          <td>e</td>
        </tr>
        <tr>
          <td>0110 0110</td>
          <td>102</td>
          <td>66</td>
          <td>f</td>
        </tr>
        <tr>
          <td>0110 0111</td>
          <td>103</td>
          <td>67</td>
          <td>g</td>
        </tr>
        <tr>
          <td>0110 1000</td>
          <td>104</td>
          <td>68</td>
          <td>h</td>
        </tr>
        <tr>
          <td>0110 1001</td>
          <td>105</td>
          <td>69</td>
          <td>i</td>
        </tr>
        <tr>
          <td>0110 1010</td>
          <td>106</td>
          <td>6A</td>
          <td>j</td>
        </tr>
        <tr>
          <td>0110 1011</td>
          <td>107</td>
          <td>6B</td>
          <td>k</td>
        </tr>
        <tr>
          <td>0110 1100</td>
          <td>108</td>
          <td>6C</td>
          <td>l</td>
        </tr>
        <tr>
          <td>0110 1101</td>
          <td>109</td>
          <td>6D</td>
          <td>m</td>
        </tr>
        <tr>
          <td>0110 1110</td>
          <td>110</td>
          <td>6E</td>
          <td>n</td>
        </tr>
        <tr>
          <td>0110 1111</td>
          <td>111</td>
          <td>6F</td>
          <td>o</td>
        </tr>
        <tr>
          <td>0111 0000</td>
          <td>112</td>
          <td>70</td>
          <td>p</td>
        </tr>
        <tr>
          <td>0111 0001</td>
          <td>113</td>
          <td>71</td>
          <td>q</td>
        </tr>
        <tr>
          <td>0111 0010</td>
          <td>114</td>
          <td>72</td>
          <td>r</td>
        </tr>
        <tr>
          <td>0111 0011</td>
          <td>115</td>
          <td>73</td>
          <td>s</td>
        </tr>
        <tr>
          <td>0111 0100</td>
          <td>116</td>
          <td>74</td>
          <td>t</td>
        </tr>
        <tr>
          <td>0111 0101</td>
          <td>117</td>
          <td>75</td>
          <td>u</td>
        </tr>
        <tr>
          <td>0111 0110</td>
          <td>118</td>
          <td>76</td>
          <td>v</td>
        </tr>
        <tr>
          <td>0111 0111</td>
          <td>119</td>
          <td>77</td>
          <td>w</td>
        </tr>
        <tr>
          <td>0111 1000</td>
          <td>120</td>
          <td>78</td>
          <td>x</td>
        </tr>
        <tr>
          <td>0111 1001</td>
          <td>121</td>
          <td>79</td>
          <td>y</td>
        </tr>
        <tr>
          <td>0111 1010</td>
          <td>122</td>
          <td>7A</td>
          <td>z</td>
        </tr>
        <tr>
          <td>0111 1011</td>
          <td>123</td>
          <td>7B</td>
          <td>{</td>
        </tr>
        <tr>
          <td>0111 1100</td>
          <td>124</td>
          <td>7C</td>
          <td>|</td>
        </tr>
        <tr>
          <td>0111 1101</td>
          <td>125</td>
          <td>7D</td>
          <td>}</td>
        </tr>
        <tr>
          <td>0111 1110</td>
          <td>126</td>
          <td>7E</td>
          <td>~</td>
        </tr>
      </tbody>
    </table>
  </div>
</body>

</html>